package info.wangyuan.agent.common.Enum;

import lombok.Getter;

/**
 * 错误码异常枚举类
 *
 * @author PNut
 */
@Getter
public enum MsgEnum {

    OK(200, "Success"),
    TOKEN_ERROR(401, "token校验失败"),
    WRONG_WECHAT_CODE(307, "微信code无效"),
    UNKNOWN_ERROR(500, "服务器发生未知错误"),
    SSE_INTERRUPT_ERROR(500, "会话不存在或已结束"),
    SENSITIVE_WORDS_RELOAD_ERROR(500, "敏感词热更新失败"),
    WRONG_WECHAT_LOGIN_VERIFY(401, "微信登录凭证验证失败"),
    WORDS_CHECK_ERROR(403, "输入内容包含违规或敏感信息，请修改后重试");

    private final Integer code;
    private final String message;

    MsgEnum(Integer code, String msg) {
        this.code = code;
        this.message = msg;
    }
}
